package response

import (
	"api/model"
	"github.com/gin-gonic/gin"
	"net/http"
)

/**
 * @Description
 * @Author huan.wang
 * @Date 2021/5/6 7:27 下午
 **/

func ErrorResponse(ctx *gin.Context,result *model.Result)  {
	ctx.JSON(http.StatusInternalServerError,result)
}

func SuccessResponse(ctx *gin.Context,result *model.Result)  {
	ctx.JSON(http.StatusOK,result)
}